<?php 
/*
* 首页日志列表部分
*/
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<div id="content">
	<?php doAction('index_loglist_top'); ?>
	<script type="text/javascript">
function wmzz_xtitle(xlogidv) {
document.getElementById("wmzz_title_idx_"+xlogidv).innerHTML='<span style="cursor:wait"><img src="<?php echo TEMPLATE_URL; ?>img/loading.gif"> 正在载入...</span>';
}
</script>
	<?php foreach($logs as $value): ?>
		<div class="cbx post">
			<h2 style="font-size: 100%;">
				<?php topflg($value['top']); ?><a href="<?php echo $value['log_url']; ?>" target="_blank" title="在新标签页中打开文章"><img src="<?php echo TEMPLATE_URL; ?>images/tie.gif" alt="在新标签页中打开文章"></a> <a href="<?php echo $value['log_url']; ?>" rel="bookmark" onclick="wmzz_xtitle(<?php echo $value['logid']; ?>);"><font id="wmzz_title_idx_<?php echo $value['logid']; ?>"><?php echo $value['log_title']; ?></font></a>
			</h2>
			<a href="<?php echo $value['log_url']; ?>" class="readmore readmorea">阅读全文...</a>
		<div class="postmeta">
			<ul>
				<li class="meta-date">
					<a href="<?php echo BLOG_URL; ?>?record=<?php echo gmdate('Yn', $value['date']); ?>" title="发布时间：<?php echo gmdate('Y-n-j', $value['date']); ?> | 单击查看该月的文章存档"><?php echo gmdate('Y-n-j', $value['date']); ?></a>
				</li>
				<li class="meta-cat">
					<?php blog_sort($value['logid']); ?> 
				</li>
				<li class="meta-views">
					<a href="javascript:;" title="热度：<?php echo $value['views']; ?> ℃" onclick="alert('该文章的热度达到了 <?php echo $value['views']; ?> ℃呢 | GID:<?php echo $value['logid'] ?>')"><?php echo $value['views']; ?> ℃</a>
				</li>
				<li class="meta-comments">
					<a href="<?php echo $value['log_url']; ?>#comments" title="文章 <?php echo $value['log_title']; ?> 的评论共有 <?php echo $value['comnum']; ?> 条"><?php echo $value['comnum']; ?> 条评论</a>
				</li><br/>
				<li class="meta-tags">
					<a href="#alltag" title="该文章的标签 | 单击查看本博客所有标签"><?php blog_tag($value['logid']); ?></a>
				</li>
			</ul>
			<div class="clear"></div>
		</div><br/>
		<div class="post-content">
			<?php echo $value['log_description']; ?>
		</div>
	</div>
	<?php endforeach; ?>
	<?php if($logs == NULL) { ?>
	<br/><br/><br/>
<font color="red" size="4"><img src="<?php echo TEMPLATE_URL; ?>images/info.gif">　错误信息：</font><br/><br/>抱歉，没有找到文章！<br/><br/><br/><br/>
<?php } ?>
	<div class="pagenavi pnb">
	<span style="font-size:102%;"><?php echo $page_url;?></span>
	</div>
</div>
<?php
 include View::getView('side');
 include View::getView('footer');
?>